home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1992-04-08 | 2.6 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Apr 8 18:02:39 1992, modified Wed Apr 8 18:02:39 1992, creator Think C, type ASCII, 2144 bytes "sample utilities.h" , at 0x8e0 348 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 73 61 6d 70 6c 65 | 20 75 74 69 6c 69 74 69 |..sample| utiliti|
|00000010| 65 73 2e 68 00 00 00 00 | 00 00 00 00 00 00 00 00 |es.h....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 08 60 00 | 00 01 5c a6 09 1d ff a6 |......`.|..\.....|
|00000060| 09 1d ff 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b4 11 00 00 |........|........|
|00000080| 0d 23 70 72 61 67 6d 61 | 20 6f 6e 63 65 0d 0d 0d |.#pragma| once...|
|00000090| 23 64 65 66 69 6e 65 09 | 49 66 44 65 62 75 67 28 |#define.|IfDebug(|
|000000a0| 78 2c 20 79 29 09 09 09 | 7b 20 69 66 28 78 29 20 |x, y)...|{ if(x) |
|000000b0| 44 65 62 75 67 53 74 72 | 28 79 29 3b 20 7d 0d 23 |DebugStr|(y); }.#|
|000000c0| 64 65 66 69 6e 65 09 6f | 66 66 73 65 74 46 69 65 |define.o|ffsetFie|
|000000d0| 6c 64 28 74 79 70 65 2c | 20 66 69 65 6c 64 29 09 |ld(type,| field).|
|000000e0| 09 28 28 6c 6f 6e 67 29 | 20 26 28 28 74 79 70 65 |.((long)| &((type|
|000000f0| 20 2a 29 20 30 29 2d 3e | 66 69 65 6c 64 29 0d 23 | *) 0)->|field).#|
|00000100| 75 6e 64 65 66 09 6e 69 | 6c 0d 23 64 65 66 69 6e |undef.ni|l.#defin|
|00000110| 65 09 6e 69 6c 09 30 0d | 0d 0d 74 79 70 65 64 65 |e.nil.0.|..typede|
|00000120| 66 20 73 74 72 75 63 74 | 20 64 69 73 6b 50 69 63 |f struct| diskPic|
|00000130| 74 75 72 65 52 65 63 6f | 72 64 20 7b 0d 09 6c 6f |tureReco|rd {..lo|
|00000140| 6e 67 09 09 09 6f 77 6e | 65 72 73 3b 0d 09 50 69 |ng...own|ers;..Pi|
|00000150| 63 48 61 6e 64 6c 65 09 | 09 70 69 63 74 75 72 65 |cHandle.|.picture|
|00000160| 3b 0d 09 43 51 44 50 72 | 6f 63 73 09 09 70 72 6f |;..CQDPr|ocs..pro|
|00000170| 63 73 3b 0d 09 52 65 63 | 74 09 09 09 62 6f 75 6e |cs;..Rec|t...boun|
|00000180| 64 73 3b 0d 09 50 69 63 | 48 61 6e 64 6c 65 09 09 |ds;..Pic|Handle..|
|00000190| 63 61 63 68 65 64 50 69 | 63 74 75 72 65 3b 09 09 |cachedPi|cture;..|
|000001a0| 2f 2a 20 69 66 20 77 65 | 20 68 61 76 65 20 65 6e |/* if we| have en|
|000001b0| 6f 75 67 68 20 6d 65 6d | 6f 72 79 2c 20 74 68 69 |ough mem|ory, thi|
|000001c0| 73 20 77 69 6c 6c 20 62 | 65 20 61 20 70 75 72 67 |s will b|e a purg|
|000001d0| 61 62 6c 65 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |able cop|y of the|
|000001e0| 20 65 6e 74 69 72 65 20 | 70 69 63 74 75 72 65 20 | entire |picture |
|000001f0| 2a 2f 0d 09 48 61 6e 64 | 6c 65 09 09 62 75 66 66 |*/..Hand|le..buff|
|00000200| 65 72 52 65 66 3b 09 09 | 09 2f 2a 20 72 65 66 65 |erRef;..|./* refe|
|00000210| 72 65 6e 63 65 20 66 6f | 72 20 74 68 65 20 62 75 |rence fo|r the bu|
|00000220| 66 66 65 72 20 66 6f 72 | 20 72 65 61 64 69 6e 67 |ffer for| reading|
|00000230| 20 70 69 63 74 75 72 65 | 20 62 79 74 65 73 20 66 | picture| bytes f|
|00000240| 72 6f 6d 20 64 69 73 6b | 20 2a 2f 0d 09 63 68 61 |rom disk| */..cha|
|00000250| 72 09 09 09 2a 62 75 66 | 66 65 72 53 74 61 72 74 |r...*buf|ferStart|
|00000260| 3b 09 09 2f 2a 20 70 6f | 69 6e 74 65 72 20 74 6f |;../* po|inter to|
|00000270| 20 74 68 65 20 73 74 61 | 72 74 20 6f 66 20 74 68 | the sta|rt of th|
|00000280| 69 73 20 62 75 66 66 65 | 72 20 28 6f 6e 6c 79 20 |is buffe|r (only |
|00000290| 76 61 6c 69 64 20 77 68 | 69 6c 65 20 70 69 63 74 |valid wh|ile pict|
|000002a0| 75 72 65 20 69 73 20 69 | 6e 73 74 61 6c 6c 65 64 |ure is i|nstalled|
|000002b0| 29 20 2a 2f 0d 09 6c 6f | 6e 67 09 09 09 62 75 66 |) */..lo|ng...buf|
|000002c0| 66 65 72 53 69 7a 65 3b | 09 09 2f 2a 20 73 69 7a |ferSize;|../* siz|
|000002d0| 65 20 6f 66 20 74 68 69 | 73 20 62 75 66 66 65 72 |e of thi|s buffer|
|000002e0| 20 28 6f 6e 6c 79 20 76 | 61 6c 69 64 20 77 68 69 | (only v|alid whi|
|000002f0| 6c 65 20 70 69 63 74 75 | 72 65 20 69 73 20 69 6e |le pictu|re is in|
|00000300| 73 74 61 6c 6c 65 64 29 | 20 2a 2f 0d 09 63 68 61 |stalled)| */..cha|
|00000310| 72 09 09 09 2a 62 75 66 | 66 65 72 50 74 72 3b 09 |r...*buf|ferPtr;.|
|00000320| 09 2f 2a 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |./* poin|ter to t|
|00000330| 68 65 20 6e 65 78 74 20 | 62 79 74 65 20 74 6f 20 |he next |byte to |
|00000340| 72 65 61 64 20 66 72 6f | 6d 20 74 68 69 73 20 62 |read fro|m this b|
|00000350| 75 66 66 65 72 20 28 6f | 6e 6c 79 20 76 61 6c 69 |uffer (o|nly vali|
|00000360| 64 20 77 68 69 6c 65 20 | 70 69 63 74 75 72 65 20 |d while |picture |
|00000370| 69 73 20 69 6e 73 74 61 | 6c 6c 65 64 29 20 2a 2f |is insta|lled) */|
|00000380| 0d 09 73 68 6f 72 74 09 | 09 66 69 6c 65 3b 0d 09 |..short.|.file;..|
|00000390| 73 68 6f 72 74 09 09 70 | 61 64 64 69 6e 67 3b 09 |short..p|adding;.|
|000003a0| 09 09 2f 2a 20 6c 6f 6e | 67 20 61 6c 69 67 6e 20 |../* lon|g align |
|000003b0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 66 69 |the foll|owing fi|
|000003c0| 65 6c 64 73 20 2a 2f 0d | 09 43 47 72 61 66 50 74 |elds */.|.CGrafPt|
|000003d0| 72 09 09 69 6e 73 74 61 | 6c 6c 65 64 50 6f 72 74 |r..insta|lledPort|
|000003e0| 3b 09 09 2f 2a 20 74 68 | 69 73 20 69 73 20 74 68 |;../* th|is is th|
|000003f0| 65 20 70 6f 72 74 20 74 | 68 61 74 20 74 68 69 73 |e port t|hat this|
|00000400| 20 64 69 73 6b 20 70 69 | 63 74 75 72 65 20 69 73 | disk pi|cture is|
|00000410| 20 63 75 72 72 65 6e 74 | 6c 79 20 69 6e 73 74 61 | current|ly insta|
|00000420| 6c 6c 65 64 20 69 6e 74 | 6f 20 2a 2f 0d 09 43 51 |lled int|o */..CQ|
|00000430| 44 50 72 6f 63 73 50 74 | 72 09 73 61 76 65 64 50 |DProcsPt|r.savedP|
|00000440| 72 6f 63 73 3b 09 09 2f | 2a 20 74 68 69 73 20 66 |rocs;../|* this f|
|00000450| 69 65 6c 64 20 69 73 20 | 75 73 65 64 20 74 6f 20 |ield is |used to |
|00000460| 73 61 76 65 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |save the| origina|
|00000470| 6c 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 20 67 |l value |of the g|
|00000480| 72 61 66 20 70 6f 72 74 | d5 73 20 73 61 76 65 64 |raf port|.s saved|
|00000490| 20 70 72 6f 63 20 70 6f | 69 6e 74 65 72 20 2a 2f | proc po|inter */|
|000004a0| 0d 7d 20 64 69 73 6b 50 | 69 63 74 75 72 65 52 65 |.} diskP|ictureRe|
|000004b0| 63 6f 72 64 3b 0d 74 79 | 70 65 64 65 66 20 64 69 |cord;.ty|pedef di|
|000004c0| 73 6b 50 69 63 74 75 72 | 65 52 65 63 6f 72 64 20 |skPictur|eRecord |
|000004d0| 2a 2a 64 69 73 6b 50 69 | 63 74 75 72 65 3b 0d 0d |**diskPi|cture;..|
|000004e0| 0d 74 79 70 65 64 65 66 | 20 65 6e 75 6d 20 73 63 |.typedef| enum sc|
|000004f0| 72 65 65 6e 54 79 70 65 | 73 20 7b 0d 09 73 63 72 |reenType|s {..scr|
|00000500| 65 65 6e 31 42 69 74 09 | 09 3d 20 31 2c 0d 09 73 |een1Bit.|.= 1,..s|
|00000510| 63 72 65 65 6e 32 42 69 | 74 2c 0d 09 73 63 72 65 |creen2Bi|t,..scre|
|00000520| 65 6e 34 42 69 74 2c 0d | 09 73 63 72 65 65 6e 38 |en4Bit,.|.screen8|
|00000530| 42 69 74 2c 0d 09 73 63 | 72 65 65 6e 31 36 42 69 |Bit,..sc|reen16Bi|
|00000540| 74 2c 0d 09 73 63 72 65 | 65 6e 33 32 42 69 74 2c |t,..scre|en32Bit,|
|00000550| 0d 09 73 63 72 65 65 6e | 43 6f 6c 6f 72 09 09 3d |..screen|Color..=|
|00000560| 20 30 78 31 30 30 2c 0d | 09 73 63 72 65 65 6e 4d | 0x100,.|.screenM|
|00000570| 6f 6e 6f 43 68 72 6f 6d | 65 09 3d 20 30 78 32 30 |onoChrom|e.= 0x20|
|00000580| 30 0d 7d 20 73 63 72 65 | 65 6e 54 79 70 65 73 3b |0.} scre|enTypes;|
|00000590| 0d 74 79 70 65 64 65 66 | 20 6c 6f 6e 67 20 73 63 |.typedef| long sc|
|000005a0| 72 65 65 6e 54 79 70 65 | 3b 0d 0d 0d 74 79 70 65 |reenType|;...type|
|000005b0| 64 65 66 20 65 6e 75 6d | 20 62 75 66 66 65 72 54 |def enum| bufferT|
|000005c0| 79 70 65 73 20 7b 0d 09 | 62 75 66 66 65 72 45 78 |ypes {..|bufferEx|
|000005d0| 61 63 74 53 69 7a 65 2c | 0d 09 62 75 66 66 65 72 |actSize,|..buffer|
|000005e0| 43 61 6e 42 65 53 6d 61 | 6c 6c 65 72 0d 7d 20 62 |CanBeSma|ller.} b|
|000005f0| 75 66 66 65 72 54 79 70 | 65 73 3b 0d 74 79 70 65 |ufferTyp|es;.type|
|00000600| 64 65 66 20 6c 6f 6e 67 | 20 62 75 66 66 65 72 54 |def long| bufferT|
|00000610| 79 70 65 3b 0d 0d 0d 23 | 64 65 66 69 6e 65 09 64 |ype;...#|define.d|
|00000620| 69 73 6b 5f 70 69 63 74 | 75 72 65 5f 61 6c 72 65 |isk_pict|ure_alre|
|00000630| 61 64 79 5f 69 6e 73 74 | 61 6c 6c 65 64 09 09 2d |ady_inst|alled..-|
|00000640| 31 30 30 30 30 30 4c 0d | 23 64 65 66 69 6e 65 09 |100000L.|#define.|
|00000650| 64 69 73 6b 5f 70 69 63 | 74 75 72 65 5f 6e 6f 74 |disk_pic|ture_not|
|00000660| 5f 69 6e 73 74 61 6c 6c | 65 64 09 09 2d 31 30 30 |_install|ed..-100|
|00000670| 30 30 31 4c 0d 0d 0d 76 | 6f 69 64 20 46 69 6e 64 |001L...v|oid Find|
|00000680| 53 63 72 65 65 6e 28 73 | 63 72 65 65 6e 54 79 70 |Screen(s|creenTyp|
|00000690| 65 20 74 79 70 65 2c 20 | 73 68 6f 72 74 20 68 53 |e type, |short hS|
|000006a0| 69 7a 65 2c 20 73 68 6f | 72 74 20 76 53 69 7a 65 |ize, sho|rt vSize|
|000006b0| 2c 20 52 65 63 74 20 2a | 62 6f 75 6e 64 73 29 3b |, Rect *|bounds);|
|000006c0| 0d 76 6f 69 64 20 50 6f | 73 74 45 72 72 6f 72 28 |.void Po|stError(|
|000006d0| 6c 6f 6e 67 20 65 72 72 | 6f 72 29 3b 0d 76 6f 69 |long err|or);.voi|
|000006e0| 64 20 2a 47 65 74 42 75 | 66 66 65 72 28 48 61 6e |d *GetBu|ffer(Han|
|000006f0| 64 6c 65 20 2a 72 65 66 | 65 72 65 6e 63 65 50 74 |dle *ref|erencePt|
|00000700| 72 2c 20 6c 6f 6e 67 20 | 2a 73 69 7a 65 50 74 72 |r, long |*sizePtr|
|00000710| 2c 20 62 75 66 66 65 72 | 54 79 70 65 20 74 79 70 |, buffer|Type typ|
|00000720| 65 29 3b 0d 0d 64 69 73 | 6b 50 69 63 74 75 72 65 |e);..dis|kPicture|
|00000730| 20 4e 65 77 44 69 73 6b | 50 69 63 74 75 72 65 28 | NewDisk|Picture(|
|00000740| 46 53 53 70 65 63 20 2a | 66 69 6c 65 29 3b 0d 76 |FSSpec *|file);.v|
|00000750| 6f 69 64 20 44 69 73 70 | 6f 73 65 44 69 73 6b 50 |oid Disp|oseDiskP|
|00000760| 69 63 74 75 72 65 28 64 | 69 73 6b 50 69 63 74 75 |icture(d|iskPictu|
|00000770| 72 65 20 74 61 72 67 65 | 74 29 3b 0d 64 69 73 6b |re targe|t);.disk|
|00000780| 50 69 63 74 75 72 65 20 | 43 6c 6f 6e 65 44 69 73 |Picture |CloneDis|
|00000790| 6b 50 69 63 74 75 72 65 | 28 64 69 73 6b 50 69 63 |kPicture|(diskPic|
|000007a0| 74 75 72 65 20 73 6f 75 | 72 63 65 29 3b 0d 76 6f |ture sou|rce);.vo|
|000007b0| 69 64 20 47 65 74 44 69 | 73 6b 50 69 63 74 75 72 |id GetDi|skPictur|
|000007c0| 65 42 6f 75 6e 64 73 28 | 64 69 73 6b 50 69 63 74 |eBounds(|diskPict|
|000007d0| 75 72 65 20 73 6f 75 72 | 63 65 2c 20 52 65 63 74 |ure sour|ce, Rect|
|000007e0| 20 2a 62 6f 75 6e 64 73 | 29 3b 0d 0d 76 6f 69 64 | *bounds|);..void|
|000007f0| 20 49 6e 73 74 61 6c 6c | 44 69 73 6b 50 69 63 74 | Install|DiskPict|
|00000800| 75 72 65 28 64 69 73 6b | 50 69 63 74 75 72 65 20 |ure(disk|Picture |
|00000810| 73 6f 75 72 63 65 29 3b | 0d 76 6f 69 64 20 52 65 |source);|.void Re|
|00000820| 6d 6f 76 65 44 69 73 6b | 50 69 63 74 75 72 65 28 |moveDisk|Picture(|
|00000830| 64 69 73 6b 50 69 63 74 | 75 72 65 20 73 6f 75 72 |diskPict|ure sour|
|00000840| 63 65 29 3b 0d 0d 76 6f | 69 64 20 44 72 61 77 44 |ce);..vo|id DrawD|
|00000850| 69 73 6b 50 69 63 74 75 | 72 65 28 64 69 73 6b 50 |iskPictu|re(diskP|
|00000860| 69 63 74 75 72 65 20 73 | 6f 75 72 63 65 29 3b 0d |icture s|ource);.|
|00000870| 76 6f 69 64 20 47 65 74 | 44 69 73 6b 50 69 63 74 |void Get|DiskPict|
|00000880| 75 72 65 49 6e 66 6f 28 | 64 69 73 6b 50 69 63 74 |ureInfo(|diskPict|
|00000890| 75 72 65 20 73 6f 75 72 | 63 65 2c 20 50 69 63 74 |ure sour|ce, Pict|
|000008a0| 49 6e 66 6f 20 2a 72 65 | 73 75 6c 74 2c 20 73 68 |Info *re|sult, sh|
|000008b0| 6f 72 74 20 76 65 72 62 | 2c 20 73 68 6f 72 74 20 |ort verb|, short |
|000008c0| 72 65 71 75 65 73 74 65 | 64 43 6f 6c 6f 72 73 2c |requeste|dColors,|
|000008d0| 20 73 68 6f 72 74 20 6d | 65 74 68 6f 64 29 3b 0d | short m|ethod);.|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000910| d0 c8 d0 d0 fb c8 09 c0 | c0 c8 c8 c0 c8 c8 c0 c8 |........|........|
|00000920| c8 fd c0 02 b8 b0 a8 fe | a0 0b 90 88 88 80 88 88 |........|........|
|00000930| 12 73 61 6d 70 6c 65 20 | 75 74 69 6c 69 74 69 65 |.sample |utilitie|
|00000940| 73 2e 68 6c 02 00 00 00 | 54 45 58 54 4b 41 48 4c |s.hl....|TEXTKAHL|
|00000950| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 a5 72 a6 0b 00 00 | 08 60 00 00 01 5c 80 80 |...r....|.`...\..|
|00000980| fe 78 10 70 78 88 90 98 | a0 90 90 a0 a8 b0 b8 c0 |.x.px...|........|
|00000990| c8 d0 d8 d0 fe d8 09 e0 | e8 e8 e0 e8 e8 e0 d8 d8 |........|........|
|000009a0| e0 fb f0 05 e8 e8 f0 f0 | f8 f8 fe f0 fe f8 01 f0 |........|........|
|000009b0| f0 f6 f8 00 f0 fb f8 fe | f0 02 f8 f8 f0 fd e8 07 |........|........|
|000009c0| f0 f8 f8 f0 f0 f8 f8 d0 | fd 60 00 68 f5 60 fb 68 |........|.`.h.`.h|
|000009d0| 0b 60 60 68 60 60 88 48 | 48 50 68 60 68 fe 60 00 |.``h``.H|HPh`h.`.|
|000009e0| 68 fb 60 02 68 68 60 fd | 68 f9 78 fc 70 01 78 78 |h.`.hh`.|h.x.p.xx|
|000009f0| fc 70 fd 78 01 70 78 fe | 68 00 70 fe 68 fd 78 00 |.p.x.px.|h.p.h.x.|
|00000a00| 00 00 00 04 00 06 00 04 | 00 00 00 0a 00 09 06 47 |........|.......G|
|00000a10| 65 6e 65 76 61 6c 00 00 | 01 00 00 00 01 16 00 00 |eneval..|........|
|00000a20| 00 16 00 00 00 46 01 0b | f0 20 09 ec 00 00 00 1c |.....F..|. ......|
|00000a30| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|00000a40| 00 00 00 1e 03 ec ff ff | 00 00 00 00 01 0b f0 8c |........|........|
|00000a50| 03 eb ff ff 00 00 00 08 | 01 0b ee 48 00 00 00 00 |........|...H....|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+